<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import OnlineStatusEnum from '@/framework/constant/OnlineStatusEnum'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: trendCommentApi,
        columns: [
          // {
          //   label: '用户ID',
          //   prop: 'userId',
          //   searchable: true,
          //   type: ColumnType.SELECT
          // },
          // {
          //   label: '动态ID',
          //   prop: 'trendId',
          //   searchable: true,
          //   type: ColumnType.SELECT
          // },
          {
            label: '评论内容',
            prop: 'content',
            width: 300
          },
          {
            label: '点赞数',
            prop: 'likeNum',
            type: ColumnType.NUMBER
          },
          {
            label: '评论数',
            prop: 'commentNum',
            type: ColumnType.NUMBER
          },
          {
            label: '转发数',
            prop: 'transmitNum',
            type: ColumnType.NUMBER
          },
          {
            label: '状态',
            searchable: true,
            type: ColumnType.RADIO,
            hiddenInForm: true,
            options: OnlineStatusEnum,
            prop: 'status'
          },
          {
            label: '被回复用户ID',
            prop: 'replyToUserId',
            type: ColumnType.SELECT
          },
          {
            label: '创建时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtCreate'
          },
          {
            label: '修改时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtModified'
          }
        ]
      }
    }
  },
  methods: {

  }
}
</script>

